{subtemplate jameson_read:qidian/read_header}
<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
<div class="back-box uk-padding-small cl bookpage">
	<div class="uk-grid-small" uk-grid>
	    <div class="uk-grid-medium uk-text-center">
	        <img src="{if $books['image'] && preg_match('/^http|\/\//i',$books['image'])}{$books['image']}{elseif $books['image']}./data/attachment/forum/{$books['image']}{else}{$_G['jameson_read']['morenfengmian']}{/if}" alt="" style="max-width: 170px;width: 90%;max-height: 100%;" class="uk-margin-small">
	    </div>
	    <div class="uk-width-expand relative uk-margin-left">
	    	<div class="absolute bookpingfen">
				<div id="function-hint" class="hint y xs3 rq" style="width: 50px;">{$fenshu}</div>
				<div id="function-demo"  class="target-demo y"></div>
	    	</div>
            <div class="bookname">
            	{$books['book_name']} 
            	{if $books['sign']}
            	<span class="text-red xs1 xw0">
            		<span uk-icon="icon:tag" ></span>{lang jameson_read:yiqianyue}
            	</span>
            	{/if}
            	<a class="xs1 xw0" href="./plugin.php?id=jameson_read&contrl=index&act=zuozhe&zuozhe_name={$books['author']}">{$books['author']}</a>
            </div>
            <p class="tag-box">
                <span class="tag-book">
                	<a class="org"  href="{eval echo jamesonurl('category',$books['category_id'])}">{$books['category_name']}</a>
                	<a class="org">{if $books['plan']}{lang jameson_read:yiwanjie}{else}{lang jameson_read:lianzaizhong}{/if}</a>
                    {if $books['shuxing'] && is_array($books['shuxing'])}
                    	{loop $books['shuxing'] $tag}
                    	<a href="./plugin.php?id=jameson_read&contrl=index&act=tag&tag={$tag}" class="blue">{$tag}</a>
                    	{/loop}
                    {/if}
                    <a class="uk-label uk-label-success uk-label-border">{eval echo dnumber($books['zishu']);}{lang jameson_read:zishu}</a>
                    <a class="uk-label uk-label-success uk-label-border">{eval echo dnumber($books['views']);}{lang jameson_read:yuedu}</a>
                </span>
            </p>
            <p class="desco">{if $books['desco']}{eval echo nl2br($books['desco']);}{else}{lang jameson_read:haimeiyoudesco}{/if}</p>
            <div class="uk-margin-small cl">
            	{if  !$books['hascol'] && !$pdfs}
            	<!-- 如果不存在章节 -->
            		<a class="uk-button uk-button-success uk-button-small" disabled>{lang jameson_read:zanwuzhangjie}</a>
            	{else}
            		<!-- newbutton start -->
            		{if  ($isread['has'] || $isread['vip'] || $isread['is']) && !$historys[$books['book_id']]}
            			<a class=" uk-button uk-button-success   uk-button-small" {if $pdfs[0]} href="javascript:;" onclick="jameson.openpdf(this)"  data-id="{$pdfs[0]['id']}" data-pdf="{$pdfs[0]['url']}" {else} href="{eval echo jamesonurl('thread',$books['firsttid'],$books['firstpid'],$_G['uid'])}"{/if}>
            				{if $isread['vip']}
            				{lang jameson_read:vipgroup}
            				{else}
            				{lang jameson_read:yuedu}
            				{/if}
            			</a>
            		{elseif !$historys[$books['book_id']]}
                  {if $books['is_pdf']}
                  <form class="uk-inline" method="POST" action="./plugin.php?id=jameson_read&contrl=index&act=buy&book_id={$books['book_id']}">
                    <input type="hidden" name="formhash" value="{FORMHASH}">
                    <button class="uk-button uk-button-success uk-button-small">{lang jameson_read:goumaicaikeyuedu}</button>
                  </form>
                  {else}
                    <a  href="{eval echo jamesonurl('thread',$books['firsttid'],$books['firstpid'],$_G['uid']);}"  class=" uk-button uk-button-success uk-button-small">{lang jameson_read:yuedu}</a>
                  {/if}
            		{elseif $historys[$books['book_id']]}
            			<a class=" uk-button uk-button-danger   uk-button-small"  href="{eval echo jamesonurl('thread',$historys[$books['book_id']]['tid'],$historys[$books['book_id']]['pid'],$_G['uid'])}">
            				{lang jameson_read:jixuyuedu}
            			</a>
            		{/if}
            		<!-- newbutton end -->
            	{/if}
            	<!-- 书架 下载 等 -->
        	{if !$books['is_pdf'] && $books['hascol'] && $_G['jameson_read']['downgroups'][0]}
            	{if in_array($_G['groupid'],$_G['jameson_read']['downgroups'])}
            		<a href="javascript:;" data-href="./plugin.php?id=jameson_read&contrl=index&act=download&book_id={$books['book_id']}&pass={eval echo md5($books['book_id']);}" onclick="return jameson.xiazai({$books['book_id']},{$books['bookmoney']},1,{$books['uid']},this);" class="uk-button uk-button-border uk-button-small ">{lang jameson_read:xiazai}</a>
              {elseif !$_G['uid']}
            		<a href="javascript:;" onclick="jameson.login()" class="uk-button uk-button-border uk-button-small ">{lang jameson_read:xiazai}</a>
              {else}
                <a href="javascript:;"  onclick="return jameson.xiazai(-1);" class="uk-button uk-button-border uk-button-small ">{lang jameson_read:xiazai}</a>
              {/if}
        	{/if}
            	<a href="javascript:;" onclick="jameson.addBookStore({$books['book_id']},this)"  class="uk-button uk-button-border uk-button-small">{if !$hasfavore}{lang jameson_read:jiarushujia}{else}{lang jameson_read:yijiarushujia}{/if}</a>
            	<a href="javascript:;" {if !$_G['uid']} onclick="jameson.login()"  {else}  uk-toggle="target: #touhudongpiao" {/if} class="uk-button uk-button-small uk-button-border">{lang jameson_read:touhudongpiao}</a>
            	<a href="#shoujierweima-wrap" uk-toggle class="uk-button">{lang jameson_read:zaishoujishangyuedu}</a>
              <div class="y">{$_G['jameson_read']['fenxiangdaima']}</div>
            </div>
	    </div>
	</div>
</div>

{loop $dquid $exid $dq}
	{if preg_match("/^extcredits/i",$exid)}
		<input type="hidden" id="dq_{$exid}" value="{$dq}" />
	{/if}
{/loop}
{if $books['is_pdf'] && $pdfs}
	<div class="cl uk-text-right none mtn mbn" id="quanpingyuedu">
		{if in_array($_G['groupid'],$_G['jameson_read']['downgroups'])}
			<a id="downpdf" href="javascript:;" {if !$_G['uid']} onclick="jameson.login()" {else} data-href="./plugin.php?id=jameson_read&contrl=index&act=downloadpdf&book_id={$books['book_id']}&pass={eval echo md5($books['book_id']);}&pdfid=" onclick="return jameson.xiazai({$books['book_id']},{$books['bookmoney']},1,{$books['uid']},this);"{/if} class="uk-button uk-button-primary  uk-button-small">{lang jameson_read:xiazai}</a>
		{elseif !$_G['uid'] && $_G['jameson_read']['downgroups'][0]}
			<a id="downpdf" href="javascript:;" onclick="jameson.login()" class="uk-button uk-button-primary  uk-button-small">{lang jameson_read:xiazai}</a>
		{/if}
		<a href="javascript:;" onclick="jameson.quanping()" class="uk-button uk-button-danger uk-button-small">{lang jameson_read:quanpingyuedu}</a>
		<input type="hidden" id="currentpdfname">
	</div>
	<div id="pdfwrap" class="uk-margin-top uk-margin-bottom" style=""></div>
{/if}

{if $newcolums && !$books['is_pdf']}
	<div class="uk-padding-small uk-margin-top back-box">
		<h3 class="uk-heading-divider xs3">{lang jameson_read:zuixinzhangjie}</h3>
		<div class="uk-padding-remove">
		{loop $newcolums $key $colum}
		{if $key < 1}
			<div class="cl">
				<a class="z xw1 xs3" href="{eval echo jamesonurl('thread',$colum['tid'],$colum['pid'],$_G['uid']);}">{$colum['subject']}
				{if $colum['price']}
				<span class="uk-text-danger">VIP</span>
				{/if}
				</a>
				<span class="y xg1">{eval echo dgmdate($colum['addtime']);}</span>
			</div>
			<p>{eval echo nl2br($colum['message']);}</p>
		{/if}
		{/loop}
		</div>
	</div>
{/if}
<div class="uk-grid-collapse uk-margin-top" uk-grid>
	<div class="uk-width-expand">
		<div class="uk-padding-small back-box">
			<ul uk-tab class="uk-margin-remove uk-padding-remove bookmuluwrap">
			    <li class="pl0"><a href="javascript:;">{lang jameson_read:mulu}<em class="xs2 xg1">({if !$books['is_pdf']}{$books['hascol']}{else}{eval echo count($pdfs);}{/if})</em></a></li>
				{if $_G['jameson_read']['enableshuping'] || $_G['jameson_read']['otherpinglun']}
			    <li><a href="javascript:;">{lang jameson_read:shuping}</a></li>
			    {/if}
			    {if $books['bindfid']}
			    <li><a href="javascript:;">{lang jameson_read:huati}</a></li>
			    {/if}
			    {if $books['qzfid']}
			    <li><a href="javascript:;">{lang jameson_read:qunzu}</a></li>
			    {/if}
			</ul>
			
			<ul class="uk-switcher uk-margin-remove uk-padding-remove">
				<li>
					{if !$books['is_pdf']}
						{if $books['fenjuan']}
							{eval $vipzj = 0;}
							{eval $weifenjuan = {lang jameson_read:weifenjuan};}
								{loop $books['fenjuan'] $juan}
									<h4 class="uk-heading-divider uk-margin-top">{$juan['j_title']}</h4>
									<div data-buyrole="zhangjie" class="zhangjie uk-child-width-1-3 uk-grid-small" uk-grid>
									{if $juan['colums']}
										{loop $juan['colums'] $colum}
											<div class="uk-text-truncate mb5">
											{if $colum['price'] && $isread['showbuy']}
											{eval $vipzj++;}
												<input {if in_array($colum['tid'],$isread['buytids'])} 
                      disabled {/if} uk-tooltip title="{lang jameson_read:goumai}:{$colum['price']}{$_G['jameson_read']['trametitle']}"  onclick="jameson.buydanxuan(this.checked,{$colum['tid']},{$colum['price']})" class="uk-checkbox" type="checkbox" data-price="{$colum['price']}" data-tid="{$colum['tid']}" id="">
											{/if}
												<a class="" href="{eval echo jamesonurl('thread',$colum['tid'],$colum['pid'],$_G['uid']);}">
												{if $colum['price']}
												<span title="{lang jameson_read:vipmianfeiyuedu}" class="xs1 xi1">[VIP]</span>
												{/if}
												{$colum['subject']}
												</a>
											</div>
										{/loop}
									{else}
										<div class="uk-alert-danger" uk-alert>{lang jameson_read:zanwuzhangjie}</div>
									{/if}
									</div>
								{/loop}
								{if $vipzj}
									<div class="uk-margin-top" id="buytools">
										<label for="buyquanxuan"  uk-tooltip title="{lang jameson_read:goumai}{lang jameson_read:quanbu}">
											<input id="buyquanxuan" class="uk-checkbox" type="checkbox" onclick="jameson.buyquanxuan(this.checked)">
											{lang jameson_read:quanxuan}
										</label>
										<span id="dangqianzongjia" class="uk-text-danger" data-zongjia="0"></span>
										<form style="display: inline-block;" onsubmit="return jameson.buytijiao(this)" action="./plugin.php?id=jameson_read&contrl=index&act=plbuytid" method="post">
											<input type="hidden" name="formhash" value="{FORMHASH}">
											<input type="hidden" name="tidhidden" id="tidhidden">
											<input type="hidden" name="tidpricehidden" id="tidpricehidden">
											<input type="hidden" name="book_id" value="{$books['book_id']}">
											<button type="submit" class="uk-button uk-button-danger">{lang jameson_read:goumai}</button>
										</form>
									</div>
								{/if}
						{else}
							<div class="ul-alert-danger" uk-alert>{lang jameson_read:zanwuzhangjie}</div>
						{/if}
					{else}
						{if $pdfs}
							<!-- 如果存在售价且当前非作者且未购买且不是vip 则显示请购买 -->
							{if  $isread['has'] || $isread['vip'] || $isread['is']}
								<div class="uk-grid-small uk-child-width-1-4 uk-margin-top" uk-grid>
								{loop $pdfs $pdf}
									<div>
									<a href="javascript:;" class="pdfmulua" onclick="jameson.openpdf(this)" data-pdfid="{$pdf['id']}" data-id="{$pdf['id']}" data-pdf="{$pdf['url']}"><span class="xi1">[PDF]</span>{$pdf['name']}</a>
									</div>
								{/loop}
								</div>
							{else}
								<div class="uk-alert" uk-alert>{lang jameson_read:goumaicaikeyuedu}</div>
							{/if}
						{else}
							<div class="uk-alert" uk-alert>{lang jameson_read:zanwuzhangjie}</div>
						{/if}
					{/if}
					{if count($likesame) > 1}
					<div class="title_2 uk-margin-top">{lang jameson_read:leisitushu}</div>
					<div class="uk-grid-collapse uk-child-width-1-3 uk-margin-top zqy_1" uk-grid>
					{loop $likesame $key $book}
					{if $book['book_id'] != $books['book_id']}
						{if $key < 6}
						<div class="booklist cl">
							<div class="book-img z">
								<a href="{eval echo jamesonurl('book',$book['book_id']);}" >
									<img src="{if $book['image'] && preg_match('/^http|\/\//i',$book['image'])}{$book['image']}{elseif $book['image']}./data/attachment/forum/{$book['image']}{else}{$_G['jameson_read']['morenfengmian']}{/if}" alt="">
								</a>
							</div>
							<div class="book-info ">
								<h4>
									<a href="{eval echo jamesonurl('book',$book['book_id'])}"  title="">{$book['book_name']}</a>
								</h4>
								<p>{$book['desco']}</p>
								<div class="state-box cf">
									<i>{$book['category_name']}</i>
									<a class="author512  uk-text-truncate" href="./plugin.php?id=jameson_read&contrl=index&act=zuozhe&zuozhe_name={$book['author']}">{$book['author']}</a>
								</div>
							</div>
						</div>
						{/if}
					{/if}
					{/loop}
					</div>
					{/if}
				</li>
				{if $_G['jameson_read']['enableshuping'] || $_G['jameson_read']['otherpinglun']}
					<li class="uk-padding-remove">
					{if $_G['jameson_read']['otherpinglun']}
						{$_G['jameson_read']['otherpinglun']}
					{else}
						<form class="uk-margin-top"  id="postshuping">
							<div class="uk-margin">
								<textarea class="uk-textarea" placeholder="{lang jameson_read:sanshidaobabai}{$_G['jameson_read']['shupinglength']}"  name="textvalue" id="shupingtextarea"></textarea>
								
							</div>
							<div class="uk-margin uk-text-right">
								<button class="uk-button uk-button-success uk-button-small" type="button" onclick="jameson.postshuping(event,jQuery('#postshuping')[0])" id="submitshuping" >{lang jameson_read:tijiao}</button>
							</div>
							<textarea class="none" name="yinyongtext" id="yinyongtext"></textarea>
							<input type="hidden" name="book_id" value="{$books['book_id']}" />
						</form>
						<ul uk-tab class="uk-margin-remove uk-padding-remove">
							<li class="uk-active">
								<a href="javascript:;">{lang jameson_read:zuixinshuping}</a>
							</li>
							<li>
								<a href="javascript:;">{lang jameson_read:jingcaishuping}</a>
							</li>
						</ul>
						<ul class="uk-switcher uk-margin-remove uk-padding-remove">
							<li id="newshupinglist">
							{if $newshuping}
								{loop $newshuping $key $value}
									<article class="uk-comment shupingcontent uk-padding-small" id="dianping_tr_{$value['dp_id']}">
									    <div class="uk-comment-body uk-padding-remove">
										    <div class="uk-grid-collapse" uk-grid>
										    	<div class="uk-width-small uk-text-center" style="width: 80px;">
										    		<div class="uk-margin-small">
										    			<img class="uk-comment-avatar uk-border-circle" src="{eval echo avatar($value['uid'],'middle',true);}" width="48" height="48">
										    		</div>
										    		<a class="uk-link-reset" href="./home.php?mod=space&uid={$value['uid']}">{$value['author']}</a>
										    	</div>
										    	<div class="uk-width-expand">
										    		<ul class="uk-comment-meta uk-subnav  uk-margin-remove uk-padding-remove xs12">
										    		    <li class="uk-padding-remove"><a>{eval echo dgmdate($value['addtime']);}</a></li>
										    		</ul>
											    	<div data-id="onlycontent" class="mt8">
												        <p data-only="1">{eval echo nl2br(dhtmlspecialchars($value['text']));}</p>
												        {if $value['yinyongtext']}
												        {eval 
												         $yinyongtext = stripcslashes(trim($value['yinyongtext']));$yinyongtext = explode('.......',$yinyongtext);
												         }
												         	{loop $yinyongtext $yt}
												        		<blockquote class="">{$yt}</blockquote>
												         	{/loop}
												        {/if}
											        </div>
											        <ul class="uk-comment-meta uk-subnav  uk-margin-remove uk-padding-remove xs12">
											            <li class="uk-padding-remove">
											            	<a class="" href="javascript:;" onclick="jameson.replyshuping(this,$value['dp_id'])">{lang jameson_read:huifu}</a> 
											            </li>
											            <li class="uk-padding-remove">
											            	<a href="javascript:;" onclick="jameson.zanorfandui({$value['dp_id']},'zhichi',this)" class="  {if getcookie('biaotai_'.$value['dp_id']) == 'zhichi'} uk-text-danger {/if}">{lang jameson_read:zancheng} [<span class="num">{$value['zhichi']}</span>]</a> 
											            </li>
											            <li class="uk-padding-remove">
											            	<a href="javascript:;" onclick="jameson.zanorfandui({$value['dp_id']},'fandui',this)" class="  {if getcookie('biaotai_'.$value['dp_id']) == 'fandui'} uk-text-danger {/if}">{lang jameson_read:fandui} [<span class="num">{$value['fandui']}</span>]</a>
											            </li>
											        </ul>
										    	</div>
										    </div>
									    </div>
									</article>
								{/loop}
								<input type="hidden" value="1" id="currentpage" />
								<input type="hidden" value="{$newshuping[0]['pages']}" id="pages" />
								<a href="javascript:;" onclick="jameson.loadmore('newshupinglist',{$books['book_id']})" id="moreinfo" class="uk-button uk-button-danger uk-button-large uk-margin-top uk-margin-bottom">{lang jameson_read:gengduoshuping}&gt;&gt;</a>
							{else}
								<div class="uk-alert-danger" uk-alert>{lang jameson_read:zanwushuping}</div>
							{/if}
							</li>
							<li id="hotshupinglist">
								{if $hotshuping}
									{loop $hotshuping $key $value}
										<article class="uk-comment shupingcontent uk-padding-small" id="dianping_tr_{$value['dp_id']}">
										    <div class="uk-comment-body uk-padding-remove">
											    <div class="uk-grid-collapse" uk-grid>
											    	<div class="uk-width-small uk-text-center" style="width: 80px;">
											    		<div class="uk-margin-small">
											    			<img class="uk-comment-avatar uk-border-circle" src="{eval echo avatar($value['uid'],'middle',true);}" width="48" height="48">
											    		</div>
											    		<a class="uk-link-reset" href="./home.php?mod=space&uid={$value['uid']}">{$value['author']}</a>
											    	</div>
											    	<div class="uk-width-expand">
											    		<ul class="uk-comment-meta uk-subnav  uk-margin-remove uk-padding-remove xs12">
											    		    <li class="uk-padding-remove"><a>{eval echo dgmdate($value['addtime']);}</a></li>
											    		</ul>
												    	<div data-id="onlycontent" class="mt8">
													        <p data-only="1">{eval echo nl2br(dhtmlspecialchars($value['text']));}</p>
													        {if $value['yinyongtext']}
													        {eval 
													         $yinyongtext = stripcslashes(trim($value['yinyongtext']));$yinyongtext = explode('.......',$yinyongtext);
													         }
													         	{loop $yinyongtext $yt}
													        		<blockquote class="">{$yt}</blockquote>
													         	{/loop}
													        {/if}
												        </div>
												        <ul class="uk-comment-meta uk-subnav  uk-margin-remove uk-padding-remove xs12">
												            <li class="uk-padding-remove">
												            	<a class="" href="javascript:;" onclick="jameson.replyshuping(this,$value['dp_id'])">{lang jameson_read:huifu}</a> 
												            </li>
												            <li class="uk-padding-remove">
												            	<a href="javascript:;" onclick="jameson.zanorfandui({$value['dp_id']},'zhichi',this)" class="  {if getcookie('biaotai_'.$value['dp_id']) == 'zhichi'} uk-text-danger {/if}">{lang jameson_read:zancheng} [<span class="num">{$value['zhichi']}</span>]</a> 
												            </li>
												            <li class="uk-padding-remove">
												            	<a href="javascript:;" onclick="jameson.zanorfandui({$value['dp_id']},'fandui',this)" class="  {if getcookie('biaotai_'.$value['dp_id']) == 'fandui'} uk-text-danger {/if}">{lang jameson_read:fandui} [<span class="num">{$value['fandui']}</span>]</a>
												            </li>
												        </ul>
											    	</div>
											    </div>
										    </div>
										</article>
									{/loop}
								{else}
									<div class="uk-alert-danger" uk-alert>{lang jameson_read:zanwuremenshuping}</div>
								{/if}
							</li>
						</ul>
					{/if}
					</li>
				{/if}
				
				{if $books['bindfid']}
				<li>
					<h3 class="uk-heading-divider uk-margin-top">
						<span><a href="./forum.php?mod=forumdisplay&fid={$books['bindfid']}">[{lang jameson_read:bankuai}]{$bindforuminfo['name']}</a></span>
					</h3>
					<ul class="gonggao uk-margin-remove uk-padding-remove">
						{loop $threadlist $key $thread}
						<li class="uk-text-truncate">
							<a class="" href="./forum.php?mod=viewthread&tid={$thread['tid']}">{$thread['subject']}</a>
							<em class="xg1">{eval echo date('y-m-d',$thread['lastpost']);}</em>
						</li>
						{/loop}
					</ul>
					<a class="uk-button uk-button-danger" href="./forum.php?mod=forumdisplay&fid={$books['bindfid']}">{lang jameson_read:gengduohuati}</a>
				</li>
				{/if}
				{if $books['qzfid']}
				<li>
					<h3 class="uk-heading-divider uk-margin-top">
						<span><a href="./forum.php?mod=forumdisplay&fid={$books['qzfid']}">[{lang jameson_read:qunzu}]{$qzinfo['name']}</a></span>
					</h3>
					<ul class="gonggao uk-margin-remove uk-padding-remove">
						{loop $qzlist $qzthread}
						<li class="uk-text-truncate">
							<a class="" href="./forum.php?mod=viewthread&tid={$qzthread['tid']}">{$qzthread['subject']}</a>
							<em class="xg1">{eval echo date('y-m-d',$qzthread['lastpost']);}</em>
						</li>
						{/loop}
					</ul>
					<a class="uk-button uk-button-danger" href="./forum.php?mod=forumdisplay&fid={$books['qzfid']}">{lang jameson_read:gengduohuati}</a>
				</li>
				{/if}
			</ul>
		</div>
	</div>
	<div class="uk-width-medium">
		<div class="uk-padding-small back-box uk-margin-left">
			<div class="uk-card">
			    <div class="uk-card-header">
			        <div class="uk-text-center">
			            <div class="">
			                <a href="./plugin.php?id=jameson_read&contrl=index&act=zuozhe&zuozhe_name={$books['author']}"><img class="uk-border-circle" width="80" height="80" src="{eval echo avatar($books['uid'],'big',true)}"></a>
			            </div>
			            <div class="">
			                <h3 class="uk-card-title uk-margin-remove-bottom xs3"><a href="./plugin.php?id=jameson_read&contrl=index&act=zuozhe&zuozhe_name={$books['author']}">{$books['author']}</a></h3>
			            </div>
			        </div>
			    </div>
			    <div class="uk-card-body uk-padding-small">
			    	{if $books['authorinfo']}
			    	<p>{$books['authorinfo']}</p>
			    	{/if}
			    	{if $authors}
			    	<ul class="gonggao uk-margin-remove uk-padding-remove">
			    	{loop $authors $key $book}
			    		{if $book['book_id'] != $books['uid']}
			    		<li class="uk-text-truncate">
			    			<a href="{eval echo jamesonurl('book',$book['book_id']);}">{$book['book_name']}</a>
			    		</li>
			    		{/if}
			    	{/loop}
			    	</ul>
			    	{/if}
			    </div>
			</div>
			{if $books['dspaihang']}
			<h3 class="uk-heading-bullet xs3 mtm mbm">{lang jameson_read:fensidashangbang}</h3>
			<div class="uk-border-e6">
				<ul class="uk-margin-remove uk-padding-remove gonggao">
					{loop $books['dspaihang'] $k $ds}
						<li class="uk-text-truncate cl">
							<a href="/?{$ds['uid']}">{$ds['username']}
							<em>{lang jameson_read:dashangbutton}{$ds['total']}{$_G['jameson_read']['dstrametitle']}</em></a>
						</li>
					{/loop}
				</ul>
			</div>
			{/if}
			{if $adv[0]['adv']}
			<div class="cl" style="width: auto;margin:auto;overflow: hidden;">
				{eval echo stripcslashes($adv[0]['adv']);}
			</div>
			{/if}
			<ul uk-tab class="pl0">
			    <li class="uk-active"><a href="javascript:;">{lang jameson_read:yuedubang}</a></li>
			    <li><a href="javascript:;">{lang jameson_read:xinshushangjia}</a></li>
			</ul>
			<ul class="uk-switcher uk-margin-remove uk-padding-remove">
				<li>
					<ul class="uk-margin-remove uk-padding-remove gonggao">
						{loop $paihangbang['yuedu'] $key $book}
						{if $key < 12}
							<li class="cl">
								<a class="channel xg1" href="{eval echo jamesonurl('category',$book['category_id'])}">
									<span>[</span>{$book['category_name']}<span>]</span>
								</a>
								<a class="name" href="{eval echo jamesonurl('book',$book['book_id']);}" >{$book['book_name']}</a>
							</li>
						{/if}
						{/loop}
					</ul>
				</li>
				<li>
					<ul class="uk-margin-remove uk-padding-remove gonggao">
						{loop $paihangbang['zuixin'] $key $book}
						{if $key < 12}
							<li class="cl">
								<a class="channel xg1" href="{eval echo jamesonurl('category',$book['category_id'])}">
									<span>[</span>{$book['category_name']}<span>]</span>
								</a>
								<a class="name" href="{eval echo jamesonurl('book',$book['book_id']);}" >{$book['book_name']}</a>
							</li>
						{/if}
						{/loop}
					</ul>
				</li>
			</ul>
			{if $adv[1]['adv']}
			<div class="cl" style="width: auto;margin:auto;overflow: hidden;">
				{eval echo stripcslashes($adv[1]['adv']);}
			</div>
			{/if}
		</div>
	</div>
</div>


<!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
{subtemplate jameson_read:qidian/read_footer}